package com.jthinker.service;

import com.jthinker.bean.vo.QueryResult;
import com.jthinker.bean.vo.SearchFilter;
import com.jthinker.bean.vo.UserInfo;

import java.io.Serializable;
import java.util.Map;
import java.util.Set;

/**
 * Created by chen.gang on 15-2-16.
 */
public interface UserService
{
    UserInfo login(String username, String saltPassword);

    void updatePass(String saltpass, Serializable id);

    boolean isUnique(String username);

    void createUser(Map<String, Object> record);

    Map<String, Object> findByUsername(String username);

    Set<String> findRoles(String username);

    Set<String> findPermissions(String username);

    QueryResult<Map<String, Object>> query(SearchFilter filter);
}
